{% extends "main_template.html" %}
{% block content %}
	<div class="span3"></div>
	<div id="login" class="span4">
	{{message}}
	
<form class="form-horizontal" method="POST" action="{% url 'django.contrib.auth.views.login' %}">
	{% csrf_token %}
	{% if form.errors %}
	<div class="control-group">
	<div class="alert alert-error alert-block text-center">
		Your username and password didn't match. Please try again.
	</div>
	</div>
	{% endif %}
	<div class="control-group">
		<label class="text-center">
			If you are not an AlgPedia user - <a href="http://localhost:8000/signin">SignIn</a>
		</label>
	</div>
  <div class="control-group">
    <label class="control-label" for="username">Username</label>
    <div class="controls">
      {{ form.username }}
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="password">Password</label>
    <div class="controls">
      {{ form.password }}
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      
      <button type="submit" class="btn">Sign in</button>
    </div>
  </div>
</form>
	</div>
	<div class="span4"></div>
{% endblock %}